package com.yuhanginfo.modules.web.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.yuhanginfo.common.service.WebCrudService;
import com.yuhanginfo.modules.web.dao.WebStoreDao;
import com.yuhanginfo.modules.web.entity.WebStore;


/**
 * 门店管理Service
 * @author yangs
 * @version 2017-09-11
 */
@Service
@Transactional(readOnly = true)
public class WebStoreService extends WebCrudService<WebStoreDao, WebStore> {
    @Autowired
    private WebStoreDao webStoreDao;
	public WebStore get(String id) {
		return super.get(id);
	}

	public List<WebStore> storeList() {
		
		return webStoreDao.storeList();
	}

	public WebStore getByCode(String storeCode) {
		return webStoreDao.getByCode(storeCode);
	}

	public WebStore getGoodsComboStore(String storeCode) {
		return webStoreDao.getGoodsComboStore(storeCode);
	}
	
	public List<WebStore> findStoreByUserId(String userId) {
		return webStoreDao.findStoreByUserId(userId);
	}

	public List<WebStore> selectByGoods(String goodsCode) {
		return webStoreDao.selectByGoods(goodsCode);
	}

	
}